<?php
/**
 * Created by PhpStorm.
 * User: zhongyb
 * Date: 16-9-27
 * Time: 下午2:51
 */

namespace common\services\common;


use common\repositories\common\MyscrmApplicationRepository;
use common\services\BaseService;

class MyscrmApplicationService extends BaseService
{

    protected $_applicationRepository;

    public function __construct(MyscrmApplicationRepository $applicationRepository, $config = []) {
        $this->_applicationRepository = $applicationRepository;
        parent::__construct($config);
    }

    public function getAll()
    {
        return $this->_applicationRepository->getAll();
    }

    public function getAllApplication()
    {
        return $this->_applicationRepository->getAllApplication();
    }

    public function getAppCodeById($id)
    {
        return $this->_applicationRepository->getAppCodeById($id);
    }

}